package org.example.CommandPattern;

/**
 * 股票
 */
public class Stock {
   
   private String name = "ABC";
   /**
    * 数量
    */
   private int quantity = 10;
 
   public void buy(){
      System.out.println("Stock [ Name: "+name+", Quantity(数量): " + quantity +" ] bought");
   }
   public void sell(){
      System.out.println("Stock [ Name: "+name+", Quantity(数量): " + quantity +" ] sold");
   }
}